#include "AudioManage.h"


AudioManage::AudioManage()
{
}


AudioManage::~AudioManage()
{
}

int AudioManage::startID = -1;
int AudioManage::playID = -1;

void AudioManage::playStartMusic()
{
	startID = AudioEngine::play2d("Music/start.mp3", true, 0.5f);
}

void AudioManage::playPlayMusic()
{
	playID = AudioEngine::play2d("Music/play.mp3", true, 0.5f);
}

void AudioManage::stopStartMusic()
{
	if (startID > -1)
	{
		AudioEngine::stop(startID);
	}
}

void AudioManage::stopPlayMusic()
{
	if (playID > -1)
	{
		AudioEngine::stop(playID);
	}
}

void AudioManage::buttonSound()
{
	AudioEngine::play2d("Music/button.mp3");
}

void AudioManage::button1Sound()
{
	AudioEngine::play2d("Music/button1.mp3");
}

void AudioManage::button2Sound()
{
	AudioEngine::play2d("Music/button2.mp3");
}

void AudioManage::cardSound()
{
	AudioEngine::play2d("Music/card.mp3");
}

void AudioManage::plus()
{
	AudioEngine::play2d("Music/plus.mp3");
}

void AudioManage::minus()
{
	AudioEngine::play2d("Music/minus.mp3");
}

void AudioManage::myTurnSound()
{
	AudioEngine::play2d("Music/my_turn.mp3");
}

void AudioManage::winSound()
{
	AudioEngine::play2d("Music/win.mp3");
}

void AudioManage::loseSound()
{
	AudioEngine::play2d("Music/lose.mp3");
}

void AudioManage::shuffleSound()
{
	AudioEngine::play2d("Music/shuffle.mp3");
}
